package by.siarhei.java.tij.reusing;

/**
 * @author Siarhei Shchahratsou <s.siarhei@gmail.com>
 * @since 09.03.14
 */
class Art {
    Art() { System.out.println("Art constructor"); }
}
class Drawing extends Art {
    Drawing() { System.out.println("Drawing constructor"); }
}
public class Cartoon extends Drawing {
    public Cartoon() { System.out.println("Cartoon constructor"); }
    public static void main(String[] args) {
        new Cartoon();
    }
}

class Cartoon2 extends Drawing {
    public static void main(String[] args) {
        new Cartoon2();
    }
}
